package top.foxhome.web.spiders;

import top.foxhome.web.spiders.document_process.simple.ImgDownloadDocumentProcess;

public class Main {
    public static void main(String[] args) {
        String host = "https://news.sina.com.cn/";
        if (args.length != 0) {
            host = args[0];
        }
        System.out.println("你爬取的网页为:" + host);
        SpidersTask mSpidersTask = new SpidersTask(host, new ImgDownloadDocumentProcess()/*构建一个简单的处理器*/);
        mSpidersTask.execute();
    }
}
